package com.wing.purchase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.purchase.model.entity.PurchaseSignFor;
import com.wing.purchase.model.request.PurchaseSignForForm;
import com.wing.purchase.model.response.*;

import java.util.List;
import java.util.Map;

/**
 * 采购签收-Service
 *
 * @author
 */
public interface PurchaseSignForService extends IService<PurchaseSignFor> {

    /**
     * 添加
     *
     * @param purchaseSignForForm
     * @return
     */
    JsonResult add(PurchaseSignForForm purchaseSignForForm);

    /**
     * 修改
     *
     * @param purchaseSignFor
     * @return
     */
    boolean update(PurchaseSignFor purchaseSignFor);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<PurchaseSignForVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<PurchaseSignForVO> pageList4app(Page page, Map<String, Object> params);


    Page<PurchaseSignForVO> pageListChange4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    PurchaseSignForVO get4appById(Long id);

    /**
     * 删除
     * @param purchaseSignForId
     * @return
     */
    boolean delete(Long purchaseSignForId);

    /**
     * 确认
     * @param id
     * @return
     */
    boolean confirm(Long id);

    /**
     * 查询入库签收单
     * @param signNo
     * @return
     */
    PurchaseSignForVO getDeliverySignInfo(String signNo);

    /**
     * 查询签收单产品信息和签收的条码总数
     * @param signProductDetailId
     * @return
     */
    InventoryJobLabelVO getSignPackLabelNum(Long signProductDetailId);

    /**
     * 查询料箱数据
     * @param code
     * @param warehouseId
     * @return
     */
    PalletBoxListVO getPalletBox(String code, Long warehouseId);

    /**
     * 采购入库作业/扫描包装条码
     * @param signId
     * @param code
     * @param inoutType
     * @param signProductDetailId
     * @return
     */
    PurchaseSignForProductLabelVO getSignPackLabel(Long signId, String code, Integer inoutType, Long signProductDetailId);

    /**
     * 查询库位数据
     * @param code
     * @param warehouseId
     * @return
     */
    WarehouseShelfSpaceVO getShelfSpace(String code, Long warehouseId);

    /**
     * 导出列表数据
     * @param page
     * @param params
     * @return
     */
    List<PurchaseSignForExportVO> exportList4app(Page page, Map<String, Object> params);

}
